package com.luxury.r_innerface;


import com.luxury.bean.ChildType12Bean;
import com.luxury.bean.HomeBean;
import com.luxury.bean.ProductBean;
import com.luxury.bean.Type6Bean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2016/12/12.
 */

public interface InterfaceLuxury {
    //    首页
    @GET("home_page?askTime=1")
    Call<HomeBean> getHomeBean();

    //优惠券的json  用RXjava
    @GET("luxuryGrabHui")
    Observable<Type6Bean> getType6Bean();

    //库大师
    @GET("specialtopic_ku?currpage=1&pagesize=10&_=1472459598414&callback=jsonp1")
    Call<String> getKuDaShiString();

    //全球数组
    @GET("comment_show_categorys?c_upk=&c_app_ver=1" +
            ".0&c_channel=&c_device_id=&c_platform=&c_platform_type=&c_platform_ver" +
            "=&c_screen_width=360&c_screen_height=640&_=1471606656703&callback=jsonp1")
    Call<String> getArrglobalString();

    //全球晒货child
    @GET("comment_show_list?currpage=1&pagesize=20&c_upk=&c_app_ver=1" +
            ".0&c_channel=&c_device_id=&c_platform=&c_platform_type=&c_platform_ver" +
            "=&c_screen_width=360&c_screen_height=640&_=1472459977691&callback=jsonp3")
    Call<String> getGlobalChildString(@Query("categoryId") String categoryId);

    //首页type=12的子网址  新客专享(hot)男士精选(male)女士精选(female)
//    http://las.secoo.com/api/home/home_bottom?productType=2
    @GET("api/home/home_bottom")
    Observable<ChildType12Bean> getChildType12Bean(@Query("productType") String productType);

    //    //分类
//    @GET("api/category/first_category")
//    Call<>
    @GET("appservice/query_goods.action")
    Observable<ProductBean> getProductBean(@Query("productId") String productId);

}
